//
//  Common.swift
//  YZMweibo
//
//  Created by Simon on 16/4/18.
//  Copyright © 2016年 Simon. All rights reserved.
//

import UIKit

let SwitchDefaultVcNSNotification = "SwitchDefaultVcNSNotification"

//屏幕宽高
let ScreenH = UIScreen.mainScreen().bounds.height
let ScreenW = UIScreen.mainScreen().bounds.width

//主题颜色
let themColor = UIColor.orangeColor()

// RGB颜色
func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}
// 随机颜色
func RandomColor() -> UIColor{
    
    // random() 有一个bug 每次程序启动起来后产生的随机数 都是相同
    let r = random() % 256
    let g = random() % 256
    let b = random() % 256
    return RGB(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}

// 微博登陆需要的账号
let CZWeiboName = "rangyuan05788697@163.com"
let CZWeiboPasswd = "aaa333"

// 新浪微博需要的参数数据
let APPKEY = "2502178694"
let APPSECRET = "cab21a615b11a37b9000c9082ddad03d"
let REDIRECT_URI = "http://www.baidu.com/"

